package com.liusaidh.domain;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

/**
 * @author liusaidh
 * @date 2024/5/9 11:02
 * @description 用于举报的实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "获得举报的文章给用户")
public class Report {
    @ApiModelProperty(value = "文章的id")
    private Integer id;
    @ApiModelProperty(value = "举报人的id")
    private Integer uid;
    @ApiModelProperty(value = "被举报的文章的作者的图片")
    private String userUrl;
    @ApiModelProperty(value = "文章的图片，为空的话用文章作者的图片userUrl")
    private String blogUrl;
    @ApiModelProperty("举报的时间")
    private LocalDate time;
    @ApiModelProperty("违规的原因")
    private String msg;
    @ApiModelProperty("文章的内容")
    private String text;
    @ApiModelProperty(value = "文章的标签")
    private String label;
    @ApiModelProperty(value = "举报是否通过，0代表驳回举报，，1代通过举报，2代表正在处理中")
    private Integer state;
}
